
<div class="bjui-pageContent tableContent">
     <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
        <thead>
            <tr>
            <th width="10" height="30"></th>
            <th data-order-direction='desc' data-order-field='id'>ID</th>
<th data-order-direction='desc' data-order-field='xuqiu'>需求类型</th>
<th>客户名称</th>
<th>联系人</th>
<th>手机号码</th>
<th>联系地址</th>
<th>QQ</th>
<th>客户来源</th>
<th data-order-direction='desc' data-order-field='jinzhan'>进展</th>
<th data-order-direction='desc' data-order-field='xiaci'>下次联系</th>
<th>添加人</th>
<th data-order-direction='desc' data-order-field='addtime'>添加时间</th>
<th>操作</th>
			<php>if(display(CONTROLLER_NAME.'/view')){</php><th width="40">详细</th><php>}</php>
            </tr>
        </thead>
        <tbody>

          <volist id="v" name="list">
          <tr>
		   <td></td>
		   <td>{$v.id}</td>
<td>{$v.xuqiu}</td>
<td>{$v.title|msubstr=###,0,20}</td>
<td>{$v.name|msubstr=###,0,20}</td>
<td>{$v.dianhua|msubstr=###,0,20}</td>
<td>{$v.dizhi|msubstr=###,0,20}</td>
<td>{$v.qq|msubstr=###,0,20}</td>
<td>{$v.laiyuan|msubstr=###,0,20}</td>
<td>{$v.jinzhan}</td>
<td>{$v.xiaci|substr=###,0,10}</td>
<td>{$v.uname|msubstr=###,0,20}</td>
<td>{$v.addtime|substr=###,0,10}</td>
<td>
<a href="{:U('Custcon/add',array('cid'=>$v['id'],'title'=>$v['title'],'navTabId'=>CONTROLLER_NAME))}"  class="btn btn-green btn-sm" data-toggle="dialog" data-width="900" data-height="500" data-id="dialog-mask" data-mask="true">联系人</a>
<a href="{:U('Custgd/add',array('cid'=>$v['id'],'title'=>$v['title'],'navTabId'=>CONTROLLER_NAME))}"   class="btn btn-green btn-sm" data-toggle="dialog" data-width="900" data-height="500" data-id="dialog-mask" data-mask="true">进展</a>
</td>
<php>if(display(CONTROLLER_NAME.'/view')){</php><td><a href="__URL__/view/id/{$v['id']}/navTabId/{:CONTROLLER_NAME}"  data-toggle="dialog" data-width="900" data-height="500" data-id="dialog-mask" data-mask="true" >详细</a></td><php>}</php>
		   </td>
         </tr> 
          </volist>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
        <div class="pages">
            <span>共 {$totalCount} 条  每页 {$numPerPage} 条</span>
        </div>
	    <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$numPerPage}" data-page-current="{$currentPage}">
        </div>
</div>